<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>家</title>
<%@include file="/WEB-INF/views/include/easyuifile.jsp" %>
<link rel="stylesheet" type="text/css" href="${ctxStatic}/css/fantasy-home.css">
	<script language="javascript">
		function gt() {
			var d = new Date();
			return(""+d.getYear()+d.getMonth()+d.getDay()+d.getHours()+d.getMinutes()+d.getSeconds()+d.getUTCMilliseconds());
		}
		var wh;
		function w(u,n,w,h,scrl){
			if (u.indexOf("?",0) == -1)
				u = u + "?time=";
			else
				u = u + "&time=";
			u = u + gt();
			wh = open(u,n,"width=" + w + ",height=" + h + ",stats=no,titlebar=no,location=no,toolbar=no,scrollbars=" + scrl + ",resizeable=no");
			wh.focus();
		}
	</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="col-md-3">&nbsp;
			</div>
			<div class="col-md-6">&nbsp;
			</div>
			<div class="col-md-3">&nbsp;
			</div>
		</div>
		
	</div>

	<div id="leftpart">
	
	</div>
	<div id="wrap">
		<img alt="" src="${ctxStatic}/images/fantasy/youle.gif">
		<iframe src="youle/world/clickbar.jsp" frameborder="0" scrolling="no" height="20" width="598"></iframe>
		<div id="main">
			<div id="sysmsgtitle">
				系統更新消息
			</div>
			<div id="sysmsg">
				系統更新消息系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息<br/>
				系統更新消息系統更新消息<br/>
				
			</div>
			<div id="guizititle">
				物品陈列柜
			</div>
			<div id="guizidiv">
				<table>
					<tr>
						<td colspan="10">
							点击它就可以打开！	
							<a href="javascript:w('queryItems.action','_blank',400,300,'yes')">家中物品查询</a>
						</td>
					</tr>
					<tr>
					
						<c:forEach items="${cabinets}" var="cabinet" varStatus="status">
							<td>
								<a id="${status.count }" href="javascript:w('cabinetitems.action?userid=${user.id }&curcabinetid=${cabinet.id}','_blank',400,300,'yes')">
									<img alt="a${cabinet.name}" title="${cabinet.name}"
									 src="${ctxStatic}/images/fantasy/${cabinet.imgsrc}">
								</a>
							</td>
						<c:if test="${status.count % 9 == 0 }">
						</tr>
						<tr>
						</c:if>
						</c:forEach>
					</tr>
				</table>
			</div>
		</div>
		<div id="sidebox">
			<div id="topstitle">
				用户排行
			</div>
			<div id="tops">
				<table>
					<tr>
						<td>
							<a href="#">经验榜</a>
						</td>
						<td>
							<a href="#">时间榜</a>
						</td>
					</tr>
					<tr>
						<td>
							<a href="#">本人经验排名</a>
						</td>
						<td>
							<a href="#">本人时间排名</a>
						</td>
					</tr>
				</table>
			</div>
			<div id="movesdiv">
				<div id="movestitle">
					用户行为
				</div>
				<div id="moves">
					<table>
						<tr>
							<td>
								<a href="${pageContext.request.contextPath}/fantasy/move/moveToStreets.do">上　　街</a>
							</td>
							<td>
								<a href="#">休　　息</a>
							</td>
						</tr>
						<tr>
							<td>
								<a href="javascript:w('showallattr.action','_blank',500,300,'yes')">个人资料</a>
							</td>
							<td>
								<a href="citybuild.action">好友管理</a>
							</td>
						</tr>
						<tr>
							<td>
								<a href="#" style="color:red">信　　箱</a>
							</td>
							<td>
								<a href="javascript:w('sortitems.action?userid=${user.id }','_blank',400,300,'yes')">道具整理</a>
							</td>
						</tr>
						<tr>
							<td>
								<a href="javascript:w('youle/icq/emotelist.jsp','_blank',350,500,'yes')">聊天动作</a>
							</td>
							<td>
								<a href="#" style="color:red">新手指南</a>
							</td>
						</tr>
					</table>
				</div>
			</div>
			
		</div>
		
	</div>

</body>
</html>